using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Threading.Tasks;
using UnityEditor;
using UnityEngine;

namespace HotUpdate.Editor
{
    public partial class ABTools
    {
        private static HotUpdateConfig config;

        private static void LoadHotUpdate()
        {
            config = ABUpdateManager.LoadHotUpdateConfig();
            
            
            fileServerIP = config.fileServerIP;
            user = config.user;
            password = config.password;
            romatePath = config.romatePath;
            loaclPath = config.loaclPath;
        }


        /// <summary>
        /// 保存AB包配置。
        /// </summary>
        private void SaveABConfig()
        {
            // config.targetPlatform = (HotUpdateConfig.TargetPlatform) Enum.Parse(typeof(HotUpdateConfig.TargetPlatform), targetPlatform);
            config.fileServerIP = fileServerIP;
            config.user = user;
            config.password = password;
            config.romatePath = romatePath;
            config.loaclPath = loaclPath;

            Debug.Log("保存AB包配置。");
        }
    }
}